import { Controller, HttpCode, Post, Body } from '@nestjs/common';
import { TiktokService } from './tiktok.service';

@Controller('/tiktok')
export class TiktokController {
  constructor(private readonly service: TiktokService) {}

  // 新增
  @Post('add')
  @HttpCode(200)
  addTiktok(@Body() tiktok: any) {
    return this.service.addTiktokService(tiktok);
  }
}
